export interface LooseObject {
  [key: string]: any
}

export interface adminInfo {
  id?: number
  username?: string
  password?: string
  isAdmin?: number
}

export interface userInfo {
  id?: number
  username?: string
  phone?: string
  password?: string
  isAdmin?: number
}

export interface chapterResInfo {
  id?: number
  course_id: number
  chapterName: string
  description: string
  sort: number
  updatedAt?: string
  createdAt?: string
}

export interface CourseInfo {
  title: string
  lesson_num: number
  cat_id: number
  teacher: string
  brief: string
  cover_url: string
  discounts: number
  price: number
  sales: number
  discountsTag: string
  details: string
}

export interface LessonResInfo {
  id?: number
  course_id: number
  chapter_id: number
  lessonName: string
  description: string
  sort: number
  is_free: boolean
  duration: number
  courseName: string
  chapterName: string
  status: number
}
